package org.jeecg.modules.service;

import org.jeecg.modules.entity.DbPurpose;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.entity.vo.DbPurposeVo;
import org.jeecg.modules.entity.vo.PurposeStatisticsVo;

import java.util.List;

/**
 * @Description: db_purpose
 * @Author: jeecg-boot
 * @Date:   2024-06-13
 * @Version: V1.0
 */
public interface IDbPurposeService extends IService<DbPurpose> {

    /**
     * 添加
     * @param dbPurpose
     * @return
     */
    void add(DbPurpose dbPurpose);

    void updateAndFileById(DbPurpose dbPurpose);
    /**
     *   通过id删除
     *
     * @param id
     * @return
     */
    void deleteById(String id);
    /**
     *  批量删除
     *
     * @param ids
     * @return
     */
    void deleteBatch(String ids);
    /**
     * 通过id查询
     *
     * @param id
     * @return
     */
    DbPurposeVo queryById(String id);

    /**
     * 意向统计
     * @return
     */
    PurposeStatisticsVo purposeStatistics();
}
